﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using System.Web.Mvc;

namespace Wolfbyte.Core.Mvc.Routing
{
    public class DefaultRouteRegistrar : IRouteRegistrar
    {
        #region IRouteRegistrar Members

        public void RegisterRoutes(RouteCollection Routes)
        {
            Routes.MapRoute(
                "Default",                                              // Route name
                "{controller}/{action}/{id}",                           // URL with parameters
                new { controller = "Home", action = "Index", id = "" }, // Parameter defaults
                new { controller = @"[^\.]*" }                          // Parameter constraints
            );
        }

        #endregion
    }
}
